export default (_self, h) => {
  return h(
    "el-rate",
    {
      props: {
        value: _self.obj.value,
      },
      attrs: {
        disabled: !_self.obj.status,
      },
      on: {
        change: (e) => {
          _self.obj.value = e;
        },
      },
    },
  );
};

export let rateConf = {
  status: true, // 启用状态，true启用；0停用
  elementWidth: "100%",
  elementType: "rate",// 对应数据库内类型
  elementName: "评 分",// 控件左侧label内容
  value: 0, // 绑定的值
  icon: "el-icon-star-on",
  required: false,// 是否必填
  rules: []
};
